﻿<Window x:Class="EierFarm.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="250" Width="400  ">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10" />
            <RowDefinition Height="35" />
            <RowDefinition Height="5" />
            <RowDefinition Height="35" />
            <RowDefinition Height="5" />
            <RowDefinition Height="*" />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="*" MinWidth="50" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="2*" MinWidth="100" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>
        <Label Content="Name" Grid.Column="1" HorizontalAlignment="Right" Grid.Row="1" VerticalAlignment="Center" />
        <Label Content="Weight" Grid.Column="1" HorizontalAlignment="Right" Grid.Row="3" VerticalAlignment="Center" />
        <Label Content="Eggs" Grid.Column="1" HorizontalAlignment="Right" Grid.Row="5" VerticalAlignment="Center" />

        <TextBox Text="{Binding Name}" Grid.Column="3" Grid.Row="1" VerticalAlignment="Center" />
        <TextBox Text="{Binding Weight , Mode=TwoWay}" Grid.Column="3" Grid.Row="3" VerticalAlignment="Center" />

        <Button Content="Feed" Grid.Column="5" Grid.Row="3" VerticalAlignment="Center" Click="Feed_Click" />
        <Button Content="Egg Laying" Grid.Column="5" Grid.Row="5" VerticalAlignment="Center" Click="EggLaying_Click" />

        <DataGrid Grid.Column="3" Grid.Row="5" AutoGenerateColumns="True" ItemsSource="{Binding Eggs, Mode=TwoWay}">
            <!--<DataGrid.Columns>
                <DataGridCheckBoxColumn />
                <DataGridTextColumn Binding="{Binding Weight}"/>
                <DataGridTextColumn Binding="{Binding Color}"/>
            </DataGrid.Columns>-->
        </DataGrid>
    </Grid>
</Window>